(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <proto/iffparse.h>
struct LocalContextItem * AllocLocalItem()
SYNOPSIS
LONG type
LONG id
LONG ident
ULONG dataSize

LOCATION
In IFFParseBase at offset 31
FUNCTION
Allocates and initializes a LocalContextItem structure. It also allocates dataSize user data. User data can be accesseed via LocalItemData function. This is the only way to allocate such a item, since the item contains private fields. Of course programmers should assume NOTHING about this private fields.

INPUTS
type, id
Longword identifications values.
ident
Longword identifier for class of item.
dataSize
Size of a user data area that will be allocated by this funcyion.
RESULT
item - A initialized LocalContextItem structure.

NOTES
Changed dataSize parameter to ULONG, negative-sized memory allocations are undefined.

EXAMPLE
BUGS
See notes.

SEE ALSO
FreeLocalItem(), LocalItemData(), StoreLocalItem(), StoreItemInContext(), SetLocalItemPurge()
INTERNALS
HISTORY
03.02.1997 digulla
Iffparse.library as supplied by Nils H. Lorentzen